/*
 *  skeletonUtil.h
 *  SAGame
 *
 *  Created by Hiroshi Nomura on 13/01/06.
 *  Copyright 2013 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef __SKELETON_UTIL_H__
#define __SKELETON_UTIL_H__

#include "SAElementType.h"

Joint* searchJointByName(Skeleton* skeleton, const char* jointName);
Joint* searchJointById(Skeleton* skeleton, const short jointId);

void transformLocalPoseToGlobalPose(Skeleton* skeleton, Matrix4x4 mtx);
void transformChildPoseToParentPose(Joint *joint, Matrix4x4 mtx);

void poseToMtx(GLfloat *mtx, Pose *pose);

#endif